import { axios } from '@/utils/request'
// 扫码统计 - 统计数据总览
export function getStatisticData(params) {
  return axios({
    url: `/qrCode/statistics/overview/${params.areaId}`,
    method: 'get',
    params
  })
}

// 扫码统计 - 根据终端查询扫码反馈类型排名
export function getStatisticTerFeedRank(params) {
  return axios({
    url: `/qrCode/statistics/feedback/type/rank`,
    method: 'get',
    params
  })
}

// 扫码统计 - 根据区域查询终端
export function getAreaTerList(params) {
  return axios({
    url: `/qrCode/statistics/basic/terminal/${params.areaId}`,
    method: 'get',
    params
  })
}

// 扫码反馈趋势
export function getStatisticTerFeedTend(data) {
  return axios({
    url: `/qrCode/statistics/feedback/trend`,
    method: 'post',
    data
  })
}

// 扫码反馈列表
export function getStatisticTerFeedList(data) {
  return axios({
    url: `/qrCode/statistics/feedback/pageList`,
    method: 'post',
    data
  })
}

// 扫码反馈详情
export function getFeedDetail(params) {
  return axios({
    url: `/qrCode/statistics/feedback/detail/${params.id}`,
    method: 'get',
    params
  })
}

// 扫码反馈导出
export function exportFeedList(params) {
  return axios({
    url: `/qrCode/statistics/feedback/detail/export/${params.id}`,
    method: 'get',
    params,
    responseType: 'blob'
  })
}

// 反馈单删除
export function deleteFeed(params) {
  return axios({
    url: `/ps/proFeedback/delete`,
    method: 'delete',
    params
  })
}

// 村庄点位查询
export function getVillagePoint(data) {
  return axios({
    url: `/manage/homePage`,
    method: 'post',
    data
  })
}